//
//  Extension+User.swift
//  YPSwift
//
//  Created by jerry on 2020/5/23.
//  Copyright © 2020 ogawa. All rights reserved.
//

import Foundation

public protocol loginData {
    var user : YPContextUser_m? { get }
}

public extension loginData {
    var user: YPContextUser_m? {
        return YPGlobal.shared.user
    }
}

extension YPCoreBase_vc : loginData {
    
}
